package com.itmk.web.select_seat.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itmk.utils.ResultUtils;
import com.itmk.utils.ResultVo;
import com.itmk.web.select_seat.entity.SelectSeat;
import com.itmk.web.select_seat.entity.SelectSeatParm;
import com.itmk.web.select_seat.service.SelectSeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author java实战基地
 * @since 2023-10-28
 */
@RestController
@RequestMapping("/api/selectSeat")
public class SelectSeatController {
    @Autowired
    private SelectSeatService selectSeatService;
    //查询后台系统列表
    //列表
    @GetMapping("/getList")
    public ResultVo getList(SelectSeatParm parm){
        //构造分页对象
        IPage<SelectSeat> list = selectSeatService.getList(parm);
        return ResultUtils.success("查询成功",list);
    }
}

